package com.groupbuying.storeinternal.service.agent;

import com.groupbuying.storeinternal.domain.agent.StoreAgentAccountDO;
import com.groupbuying.storeinternal.utils.PageUtils;
import com.groupbuying.storeinternal.utils.R;
import com.groupbuying.storeinternal.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 服务商账号表
 * 
 * @author WANGNIGN
 * @email wyn20140226@aliyun.com
 * @date 2019-07-23 10:24:23
 * @des
 */

public interface StoreAgentAccountService {

	StoreAgentAccountDO get(String accountId);
	
	List<StoreAgentAccountDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreAgentAccountDO storeAccount);
	
	int update(StoreAgentAccountDO storeAccount);
	
	int remove(String accountId);
	
	int batchRemove(String[] accountIds);
	/*通过账号获取信息*/
	StoreAgentAccountDO getByAccountName(String accountName);
	/*通过代理商添加服务商*/
	ApiResult saveAccount(Map<String, Object> map);
	/*更新一条数据*/
	int updateStatus(Map<String, Object> map);
	/*通过代理商查出门店*/
	PageUtils storeMainInfoListByAgent(Map<String, Object> map);
	/*通过代理商id查询运营人员管理*/
	PageUtils getStoreOperList(Map<String, Object> map);
	/*通过代理商id编辑运营人员管理*/
	R setStoreOper(Map<String, Object> params);
}
